﻿using System;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using OMF.Service.Contracts.ServiceContracts;
using System.Collections.Generic;
using OMF.Service.Contracts.DataContracts;

namespace OMF.OrderClient.Web
{    
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class OrderService : IOrderService
    {
        private List<Order> orders = new List<Order>();

        public void SendOrder(Order order)
        {
            orders.Add(order);
        }

        public List<Order> GetOrders()
        {
            return orders;
        }
    }
}
